package com.itheima.webaitliasserver.mapper;

import com.itheima.webaitliasserver.pojo.Clazz;
import com.itheima.webaitliasserver.request.ClassInfo;
import com.itheima.webaitliasserver.request.QueryClassListRequest;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @ClassName: xiaoZhang
 * @Description:
 * @Author: Zhang
 * @CreateDate: 2025-09-05 15:52
 */
@Mapper
public interface ClazzMapper {
    public List<Clazz> classListMapper(QueryClassListRequest request);

    @Delete("delete from clazz where id = #{id}")
    void removeClassByIdMapper(Integer id);

    void addClassInfoMapper(ClassInfo classRequest);
}
